import {get, post, del, put} from "@/apis/http/request";
import {ExchangeBill} from "@/apis/model/exchange/ExchangeBillModel";

/**
* 得到列表
* @param params
*/
export const getExchangeBillList = (params: any) => get("/exchangeBill/list", params)

/**
* 得到分页列表
* @param params
*/
export const exchangeBillPage = (params: any) => post("/exchangeBill/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteExchangeBillById = (id: number) => del("/exchangeBill/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertExchangeBill = (param: ExchangeBill) => post("/exchangeBill", param)

/**
* 更新数据
* @param param
*/
export const updateExchangeBill = (param: ExchangeBill) => put("/exchangeBill", param)